package com.hs.eric.controller;

import com.hs.eric.entity.User;
import com.hs.eric.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * Description:
 * User: eric
 * Date: 2015/4/9
 * Time: 20:10
 */
@Controller
public class LoginController {

    @Autowired
    private UserService userService;

    @RequestMapping(value = "login")
    public String login(){
        List<User> userList = userService.getUsers();
        return "index";
    }

}
